<?php

$id_produk = $_GET['id_produk'];

session_start();

require_once($_SERVER['DOCUMENT_ROOT'].'/incofarming/Functions/config.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/incofarming/Functions/class/produk_model.php');

$produk_model = new Produk_model();

$prod_res = $produk_model->get_product_from_id($id_produk);

while($row = mysql_fetch_array($prod_res)){
	$product_info = array(
		'id_prod' => $row['IDPRODUK'],
		'nama_prod' => $row['NAMAPRODUK'],
		'direktori' => $row['DIREKTORI'],
		'besaran' => $row['BESARAN'],
		'ketersediaan' => $row['IDBESARAN'],
		'harga_sat' => $row['HARGASAT']
	);
}

var_dump($product_info);

?>